﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:OMANE_Modules_TauxGarantis_ViewModels="clr-namespace:OMANE.Modules.TauxGarantis.ViewModels" x:Class="Views.ViewVariable" 
             MaxWidth="500" MaxHeight="400"         
             mc:Ignorable="d">
	
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition  />
            <ColumnDefinition  />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition  />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="Caractéristiques du Champ:" Margin="20,0,0,0" HorizontalAlignment="Left" FontWeight="Bold" FontSize="16" Foreground="{DynamicResource BrushCouleur1Base}" TextDecorations="Underline" VerticalAlignment="Center" />
        <TextBlock Grid.Row="1" Text="Nom du Champ:" HorizontalAlignment="Right" Margin="0,10,5,5" FontWeight="Bold" FontSize="13.333" VerticalAlignment="Center" />
        <TextBlock Grid.Row="2" Text="Format:" HorizontalAlignment="Right" Margin="0,5,5,5" FontWeight="Bold" FontSize="13.333" VerticalAlignment="Center" />
        <TextBlock Grid.Row="3" Text="Nombre de valeurs distinctes:" HorizontalAlignment="Right" Margin="0,5,5,10" FontWeight="Bold" FontSize="13.333" VerticalAlignment="Center" />
        <TextBlock Grid.Row="4" Text="Valeurs Distincts:" Margin="20,0,0,0" HorizontalAlignment="Left" FontWeight="Bold" FontSize="16" Foreground="{DynamicResource BrushCouleur1Base}" TextDecorations="Underline" VerticalAlignment="Center"   />

        <TextBlock Grid.Row="1" Text="{Binding CorrespEntreeTable.chOutil.Nom }" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" />
        <TextBlock Grid.Row="2" Text="{Binding CorrespEntreeTable.chOutil.Format.typeAff.Name}" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" />
        <TextBlock Grid.Row="3" Text="{Binding CorrespEntreeTable.chOutil.NbValeursDistinctes}" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" />
        <DataGrid MaxHeight="500" Grid.Row="5" 
                  Margin="20,10,20,5" 
                  Grid.ColumnSpan="2" 
                  IsReadOnly="True"
                  ItemsSource="{Binding CorrespEntreeTable.chOutil.valeursDistinctes}" />
    </Grid>
</UserControl>
